package com.bojx.cms.dao;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

public class UserDao {
	public Record queryUserInfo(String username){
		return Db.findFirst("select a.id user_id,a.depart_id,b.name depart_name from cms_user a left join cms_depart b on a.depart_id=b.id where a.name=?",username);
	}
}
